﻿using Prism.Ioc;
using L4_Dialog.Views;
using System.Windows;
using L4_Dialog.ViewModels;

namespace L4_Dialog
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterDialog<MessageDialog, MessageDialogViewModel>();
            containerRegistry.RegisterDialog<EditDialog, EditDialogViewModel>();

            //containerRegistry.RegisterDialogWindow<DialogWindow>();
            containerRegistry.RegisterDialogWindow<DialogWindow>("dialogWindowA");
        }
    }
}
